import { IPSJsonStringSchema } from './ipsjson-string-schema';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSJsonStringSchemaImpl extends PSModelObjectImpl implements IPSJsonStringSchema {
  get codeName(): string {
    return this.M.codeName;
  }

  get description(): string {
    return this.M.description;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get format(): string {
    return this.M.format;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get refSchemaId(): string {
    return this.M.refSchemaId;
  }

  get stdDataType(): number {
    return this.M.stdDataType != null ? this.M.stdDataType : 0;
  }

  get type(): 'null' | 'boolean' | 'object' | 'array' | 'number' | 'string' | 'integer' {
    return this.M.type;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get refMode(): boolean {
    return this.M.refMode;
  }

  get cls(): string {
    return 'PSJsonStringSchemaImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dynamodel.IPSJsonStringSchema') return true;
    return super.instanceof(cls);
  }
}
